<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${link.id}"  type="hidden">
							<input id="attachId" name="attachId" type="hidden" th:value="${attachId}">
							<input id="oldAttachId" name="oldAttachId" type="hidden" th:value="${link.attachId}">
							<div class="form-group">	
								<label class="col-sm-2 control-label">链接名称：</label>
								<div class="col-sm-8">
									<input id="linkName" name="linkName" th:value="${link.linkName}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-2 control-label">链接地址：</label>
								<div class="col-sm-8">
									<input id="linkUrl" name="linkUrl" th:value="${link.linkUrl}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">图片：</label>
								<div id="uploader" class="wu-example col-sm-8">
									<div class="queueList">
										<div id="dndArea" class="placeholder">
											<div id="filePicker"></div>
											<p>或将照片拖到这里，单次最多可选6张</p>
										</div>
									</div>
									<div class="statusBar" style="display:none;">
										<div class="progress">
											<span class="text">0%</span>
											<span class="percentage"></span>
										</div>
										<div class="info"></div>
										<div class="btns">
											<div id="filePicker2"></div>
											<div class="uploadBtn">开始上传</div>
										</div>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">链接内容：</label>
								<div class="col-sm-8">
									<input id="linkContent" name="linkContent" th:value="${link.linkContent}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-10 col-sm-offset-5">
									<button type="submit" class="btn btn-primary">提交</button>
									<button type="button" onclick="closeIndex();" class="btn btn-danger">取消</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" th:src="@{/js/plugins/webuploader/webuploader.js}"></script>
	<script type="text/javascript" th:src="@{/js/plugins/webuploader/webuploader_demo.js}"></script>
	<script type="text/javascript" src="/js/appjs/system/link/edit.js">
	</script>
</body>
</html>
